package com.jackstraw.jack_base.datasource.zookeeper.bean;

import com.jackstraw.jack_base.datasource.common.entity.AbstractPropertiesEntity;
import lombok.Data;

@Data
public class ZookeeperPropertiesEntity extends AbstractPropertiesEntity<ZookeeperPropertiesEntity> {

    /**
     * zk连接集群，多个用逗号隔开
     */
    private String servers = "127.0.0.1:2181";

    /**
     * 会话超时时间
     */
    private int sessionTimeout = 60000;

    /**
     * 连接超时时间
     */
    private int connectionTimeout = 15000;

    /**
     * 初始重试等待时间(毫秒)
     */
    private int baseSleepTime = 1000;

    /**
     * 重试最大次数
     */
    private int maxRetries = 10;
}
